package org.grottarossa.template.data.pojo.workflows;


import java.util.HashMap;

import org.grottarossa.template.drivers.components.tokens.WorkFlowId;

public class Workflow
{
	protected WorkFlowId workflowId;
	protected int workflowVersion;
	protected String workflowName;
	protected String startActivity;

	@SuppressWarnings("unchecked")
	HashMap parameters = new HashMap();

	public Workflow(WorkFlowId iWorkflowId, int iworkflowVersion)
	{
		this.setWorkflowId(iWorkflowId);
		this.setWorkflowVersion(iworkflowVersion);
	}

	public WorkFlowId getWorkflowId() {
		return workflowId;
	}
	public int getWorkflowVersion() {
		return workflowVersion;
	}
	public void setWorkflowVersion(int workflowVersion) {
		this.workflowVersion = workflowVersion;
	}
	public void setWorkflowId(WorkFlowId workflowId) {
		this.workflowId = workflowId;
	}

	public void setWorkflowName(String mWorkFlowName) {
		this.workflowName=mWorkFlowName;
	}
	public String getWorkflowName() {
		return this.workflowName;
	}
	@SuppressWarnings("unchecked")
	public void addParameter(String parameterName, Object value) {
		parameters.put(parameterName, value);
	}
	public HashMap getParameters()
	{
		return parameters;
	}

	public String getWorkFlowStartActivity()
	{
		return this.startActivity;
	}

	public void setWorkFlowStartActivity(String m_DefaultStepName)
	{
		this.startActivity = m_DefaultStepName;
	}
}
